package commons;

/**
 * Class meant to be extended that keeps track of
 * when it was changed.
 * 
 */
public class Status {
	long lastChange;
	
	
	public synchronized void changed() {
		lastChange = System.currentTimeMillis();
	}
	
	public synchronized boolean hasChangedSince(long time) {
		return lastChange > time;
	}
}
